import Vue from 'vue'
import VueI18n from 'vue-i18n'
import zh_CN from '../i18n/zh_CN'
import en_US from '../i18n/en_US'
import store from '@/store'

Vue.use(VueI18n)

const i18n = new VueI18n({
  locale: store.state.app.language,
  messages: {
    zh_CN,
    en_US
  }
})

export default i18n